<?php
namespace app\api\controller;

use app\common\model as M;

/**
 *
 */
class Banner extends \app\api\ApiBase
{
    public $model = '\app\common\model\Banner';

    /**
     * 首页轮播列表
     * @Author   FW
     * @DateTime 2024-03-18
     * @Email    123763712@qq.com
     * @return   [type]           [description]
     */
    public function banners()
    {
        return $this->returnSuccess($this->model::where('status',1)->order(sprintf('banner_sort %s',$this->model::DEFAULT_SORT_RULE))->select());
    }
}//Class End